﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PictrueSimpleSyndication
{
    /// <summary>
    /// 包含的每一项信息
    /// </summary>
    public class ContentItemInfo
    {
        /// <summary>
        /// 内容标识
        /// </summary>
        public string Identification { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Describe { get; set; }
    }

    /// <summary>
    /// 数据接口 内容列表
    /// </summary>
    public interface IDataContentList
    {
        /// <summary>
        /// 获取包含内容信息
        /// </summary>
        /// <returns></returns>
        IEnumerable<ContentItemInfo> GetContentInfo(int pageindex = 1, int perpagecount = 20);

        /// <summary>
        /// 获取数据内容
        /// </summary>
        /// <param name="identification"></param>
        /// <returns></returns>
        IDataContent GetDataContent(string identification);
    }
}
